package com.hqyj.project.utils;

import org.apache.shiro.crypto.hash.Md5Hash;

import java.util.UUID;

public class MD5Util {
    public static String getMd5Pwd(String userPwd,String salt){
        String md5Pwd = new Md5Hash(userPwd, salt, 1024).toString();
        return md5Pwd;
    }

    public static void main(String[] args) {
        String md5Pwd = MD5Util.getMd5Pwd("123456", "4c4febf1-2196-4e3a-a449-2ba3f3849b6e");
        System.out.println(md5Pwd);
    }
}